/**
 * 自定义全局指令 v-auth判断权限
 */
// utils
import { hasPermission } from '@/utils/util'
export default {
    mounted(el: HTMLElement, binding: any) {
        const { value: code } =  binding;
        const isAuth = hasPermission(code)
        if (!isAuth) {
            el.style.display = 'none'

        }
    },
}
  